import App from './App.vue';

// #ifndef VUE3
import Vue from 'vue'
import store from '@/store/store.js'
import { createPinia } from 'pinia';

// 注册 Pinia 插件
const pinia = createPinia();
Vue.use(pinia);


// 导入并挂载全局的分享方法
import share from '@/store/share.js'
Vue.mixin(share)


Vue.config.productionTip = false
Vue.prototype.$eventBus = new Vue()


App.mpType = 'app'


const app = new Vue({
    store,
    render: h => h(App)
})

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}

// #endif